package com.umfwechat.util.email;

import java.util.Properties;

/**
 * Created by Administrator on 2017/5/17.
 */
public class SMTPMailSender extends AbstractMailSender {
    @Override
    public Properties getProperties() {
        Properties props = new Properties();
        props.put("mail.transport.protocol", "smtp");
        // # SMTP 主机地址
        props.put("mail.smtp.host", this.serverHost);
        props.put("mail.smtp.port", this.serverPort + "");
        // #指定 SMTP 需要验证
        props.put("mail.smtp.auth", this.isAuthen + "");
        props.put("username", this.userName);
        props.put("password", this.userPwd);
        props.put("mail.smtp.timeout", this.timeout);
        return props;
    }

    public static void main(String[] args) {

    }
}
